import request from '@/utils/request'

// 登录请求
export const loginApi = (data) => {
  return request({
    url: '/index/login',
    method: 'post',
    data
  })
}

// 获取用户资料请求
export const getUserInfoApi = () => {
  return request({
    url: '/index/profile',
    method: 'post',
  })
}
